package com.zh.service.Imp;

import com.zh.dao.Imp.userDaoImp;
import com.zh.dao.demoDao;
import com.zh.dao.userDao;
import com.zh.service.demoService;

public class demoServiceImp implements demoService {
    private demoDao demoDao;
    private userDao userDao;

    public demoServiceImp(userDao userDao) {
        this.userDao = userDao;
    }

    public demoServiceImp() {
    }

    @Override
    public void add() {
        System.out.println("demoServiceImp-----save");
        demoDao.save();
        userDao.save();
    }

    public void setDemoDao(demoDao demoDao) {
        this.demoDao = demoDao;
    }

    public void setUserDao(userDaoImp userDao) {
        this.userDao=userDao;
    }
}
